import { Injectable } from '@angular/core';
import { Observable, of as observableOf } from 'rxjs';
import { RoleData, Roleitem } from '../data/role';

@Injectable()
export class  roleService extends RoleData{
  private Roleitem:Roleitem[]=[
    {
      id:'1',
      name:'管理员',
      roleType:null,
      isSystem:true,
      isEmpowerment:true
    },
    {
      id:'2',
      name:'普通用户1',
      isSystem:false,
      roleType:null,
      isEmpowerment:false
    }
  ]
  getRole():Observable<Roleitem[]>{
    return observableOf(this.Roleitem)
  }
}
